package com.xinlu.user.action;

import com.xinlu.derek.common.BaseAction;
import com.xinlu.derek.common.BaseForm;
import com.xinlu.persistence.Users;
import com.xinlu.user.bo.UsersBo;
import com.xinlu.user.form.JrzcForm;

public class JrzcAction extends BaseAction {
	
	JrzcForm fr = new JrzcForm();
	private UsersBo usersBo;

	public void setFr(JrzcForm fr) {
		this.fr = fr;
	}

	public void setUsersBo(UsersBo usersBo) {
		this.usersBo = usersBo;
	}

	@Override
	public String doExecute() throws Exception {
		return null;
	}

	@Override
	public void formInit() {
	}

	@Override
	public BaseForm getModel() {
		return fr;
	}
	
	/**
	 * 加载页面
	 * @return
	 */
	public String loadPage(){
		
		Users crtUser = (Users)getSession().getAttribute("userinfo");
		
		fr.setJrzcs(usersBo.getJrzc(crtUser));
		
		return "jrzc";
	}
}